var $ = require('../../utils/Ajax.js');
Page({
  data: {
    imgUrls: [],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
    ExperDetails: null,
    // 评价
    ListComment: null,
    // 图片地址
    PictureUrl: getApp().PictureUrl
  },
  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "体验详情"
    })

    $.Ajax("api/x_myExp", "POST", {}, function (res) {
      console.log(res)
      that.setData({
        imgUrls: res.d.experience.image,
        ExperDetails: res.d.experience,
        ListComment: res.d.list_comment
      })
    });
  },

  // 转发
  // onShareAppMessage: function () {
  //   return {
  //     title: wx.getStorageSync("Title"),
  //     path: '/pages/ExperDetails/ExperDetails?Id=' + this.data.Id,
  //     success: function (res) {
  //       wx.showToast({
  //         title: "分享成功",
  //         icon: 'success',
  //         duration: 2000
  //       })
  //     },
  //     fail: function (res) {
  //       wx.showToast({
  //         title: "分享失败",
  //         icon: 'none',
  //         image: '../../images/err.png',
  //         duration: 2000
  //       })
  //     }
  //   }
  // }
})